<%-- 
    Document   : userDetails
    Created on : Jun 1, 2012, 12:19:20 PM
    Author     : ciummo
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/DGestWebServer/css/dgest.css"/>
        <title>Visualizza Dettagli Utente</title>
    </head>
    <body>
        <%@ include file="../adminDialogBar.jspf" %>
        
        


        <h1>Dettagli Utente: <bean:write name="UserActionForm" property="username"/></h1>

             
            <table class="center"><tbody>

                <div id="OrderInformation">
                    
                    <tr><td><h2>Informazioni Utente</h2></td></tr>
                    
                    <tr>
                        <td>Nome Utente</td>
                        <td><bean:write name="UserActionForm" property="username"/></td>
                    </tr>                 
                    
                    <tr>
                        <td>Nome Reale</td>
                        <td><bean:write name="UserActionForm" property="nome"/></td>
                    </tr>
                    <tr>
                        <td>Cognome</td>
                        <td><bean:write name="UserActionForm" property="cognome"/></td>
                    </tr>
                    <tr>
                        <td>Cod. Fiscale</td>
                        <td><bean:write name="UserActionForm" property="codFiscale"/></td>
                    </tr>
                    <tr>
                        <td>Email</td>
                        <td><bean:write name="UserActionForm" property="email"/></td>
                    </tr>
                    <tr>
                        <td>Telefono</td>
                        <td><bean:write name="UserActionForm" property="telefono"/></td>
                    </tr>
                    <tr>
                        <td>Ruolo</td>
                        <td><bean:write name="UserActionForm" property="ruolo"/></td>
                    </tr>                    
                    
                    <tr>
                        
                        <td>Stato Utente</td>
                        
                    <logic:equal name="UserActionForm" property="stato" value="0">
                                        
                        <td>Inattivo</td>
                    </logic:equal>
                                        
                    <logic:equal name="UserActionForm" property="stato" value="1">
                                        
                        <td>Attivo</td>
                    </logic:equal>
                    </tr>                   
            </table></tbody>
            
            
            
            <html:link page="/User.do?method=listUsers"><img src="/DGestWebServer/images/return.png" alt="Ritorna alla lista utenti" height="50px" width="50px"/></html:link>
                                                
            <logic:equal name="UserActionForm" property="stato" value="0">
                                        
            <html:link page="/User.do?method=switchState" paramId="username" paramName="UserActionForm" paramProperty="username"><img src="/DGestWebServer/images/userActivate.png" alt="Attiva Utente" height="50px" width="50px"/></html:link>
            </logic:equal>
                                        
            <logic:equal name="UserActionForm" property="stato" value="1">
                                        
            <html:link page="/User.do?method=switchState" paramId="username" paramName="UserActionForm" paramProperty="username"><img src="/DGestWebServer/images/userDeactivate.png" alt="Attiva Utente" height="50px" width="50px"/></html:link>
            </logic:equal>

            
    </body>
</html>
